package com.app.micaihu.view.home.exclusive.adapter

import android.widget.ImageView
import com.app.micaihu.R
import com.app.micaihu.bean.news.NewsEntity
import com.app.micaihu.bean.news.VideoChannel
import com.app.micaihu.configure.TypeConstant
import com.app.micaihu.view.home.exclusive.adapter.provider.DefaultItemProvider
import com.app.micaihu.view.home.exclusive.adapter.provider.OneBigImageItemProvider
import com.app.micaihu.view.home.exclusive.adapter.provider.VideoItemProvider
import com.app.micaihu.view.utils.loadImage
import com.chad.library.adapter.base.BaseProviderMultiAdapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class ExclusiveListHeaderAdapter : BaseQuickAdapter<VideoChannel, BaseViewHolder>(R.layout.exclusive_list_header_item) {

    override fun convert(holder: BaseViewHolder, item: VideoChannel) {

        holder.getView<ImageView>(R.id.ivUserIcon).loadImage(item.icon)
        holder.setText(R.id.tvUserName, item.title)

    }


}